#if !defined(AFX_HSPLITTER_H__80EC6DCB_2D9B_4D89_9C4B_EC7CC3F30621__INCLUDED_)
#define AFX_HSPLITTER_H__80EC6DCB_2D9B_4D89_9C4B_EC7CC3F30621__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// HSplitter.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CHSplitter window
#define WM_USER_HSPLITTER	(WM_USER + 11102)

class CHSplitter : public CWnd
{
// Construction
public:
	CHSplitter();

// Attributes
public:
    void    SetEventMsg(UINT msg)   { m_nMsg = msg; }

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHSplitter)
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetTopBottom(int nMinTop, int nMinBottom);
	virtual ~CHSplitter();

	// Generated message map functions
protected:
	void DrawDraggingBar(CPoint point, BOOL bLast);
	//{{AFX_MSG(CHSplitter)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnPaint();
	afx_msg void OnMove(int x, int y);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL	m_bSplitter;
	CRect	m_rcWin;
	CRect	m_rcParent;
	int		m_nOffset;
	int		m_nMinTop;
    int		m_nMinBottom;
    UINT    m_nMsg;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HSPLITTER_H__80EC6DCB_2D9B_4D89_9C4B_EC7CC3F30621__INCLUDED_)
